<%@ page language="java" contentType="text/html;charset=utf-8"
	pageEncoding="utf-8"%>

<%@ include file="/core/taglibs2.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/core/adminTopMeta.jsp"%>

<!--文本编辑器start--> 
<!--文本编辑器start--> 
<script src="<%=basePath%>/resources/js/jquery-1.4.js"></script>

<script type="text/javascript" src="<%=basePath%>/resources/xheditor/xheditor-pro-1.2.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<%=basePath%>/resources/xheditor/zh-cn.js"></script>

<script type=text/javascript>
	$(document).ready(function(){
		//设置编辑器
		 
		$("#content").xheditor({
			tools: "full", 
			skin: "default",
			upMultiple:true,
			html5Upload : false, //此属性必须为false 否则无法上传图片
			upImgUrl:"<%=basePath%>/upload/imgUpload.shtml",
			upImgExt:"jpg,jpeg,gif,png",
			onUpload:insertUpload 
		});
		function insertUpload(msg){
		//	alert(msg);
		}

 
		
	});
</script>

<script type=text/javascript>
	$(document).ready(function(){
		//设置编辑器
		 
		$("#content").xheditor({
			tools: "full", 
			skin: "default",
			upMultiple:true,
			html5Upload : false, //此属性必须为false 否则无法上传图片
			upImgUrl:"<%=basePath%>/upload/imgUpload.shtml",
			upImgExt:"jpg,jpeg,gif,png",
			onUpload:insertUpload 
		});
		function insertUpload(msg){
		//	alert(msg);
		}

 
		
	});
</script>



</head>

<body oncontextmenu="return false"><div class="loader"></div>		
	<div class="row">
		<div class="col-md-12">
			<div class="panel">
				<div class="panel-heading text-primary">
					<h3 class="panel-title">
						<i class="fa fa-comments-o"></i> 新增公告 
						<span class="pull-right">
							<div class="btn-group code">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"
									title="Classes used"> 
								</a>

							</div> 
						</span>
					</h3>
				</div>

				<!-- /panel body -->
			</div>
		</div>

		<div class="col-md-12">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title  text-white" style="font-size: 17px;">
						新增公告
					</h3>
				</div>
				<div class="panel-body">
					<form id="commitForm" name="commitForm"  method="post" action="admin/info/noticeAdd.shtml">

						<table class="table table-bordered table-hover table-striped display tab_right" id="example">

							<tbody>

								 
								<tr>
									<td style="text-align: right;width: 20%">
										标题：
									</td> 
									<td style="text-align: left;">
										 <input type="text" name="title" id="title"  class="form-control form-cascade-control  " />
		                            </td>
								</tr>
								

								<tr>
									<td style="text-align: right;">内容：</td>
									<td>
 
										<textarea  id="content" name="content" class="form-control form-cascade-control  " style="width:90%;height:200px;"></textarea> 
										 
									</td>
								</tr>
								<tr>
									<td style="text-align: right;">安全密码：</td>
									<td>
										<input type="password" id="myTwoPassword" class="form-control form-cascade-control" name="myTwoPassword" />
									</td>
								</tr>
								<tr>
									<td colspan="2">
										<div style="color: red;text-align:center;">
											<div style="color:red;text-align:center">
												${retMsg}
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td colspan="2" style="text-align: center;">
										<button type="submit" class="btn btn-success "> 提 交 </button>
										<button type="reset" class="btn btn-warning"> 重 置 </button>
									</td>
								</tr>

							</tbody>


						</table>
						
					</form>
				</div>
			</div>
			<!-- / Info Panel -->

		</div>

		<!-- /col-md-12 -->
	</div>
	<!--代码高亮end-->
 
</body>
</html>